<a href='https://github.com/angular/angular.js/edit/v1.5.x/docs/content/error/$compile/noctrl.ngdoc?message=docs(error%2Fnoctrl)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $compile:noctrl
  <div><span class='hint'>Controller is required.</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Cannot bind to controller without directive '{0}'s controller.">Cannot bind to controller without directive '{0}'s controller.</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>When using the <code>bindToController</code> feature of AngularJS, a directive is required
to have a Controller. A controller may be specified by adding a &quot;controller&quot;
property to the directive definition object. Its value should be either a
string, or an invokable object (a function, or an array whose last element is a
function).</p>
<p>For more information, see the <a href="guide/directive">directives guide</a>.</p>

</div>


